package com.cheetah.start.common.util;

import cn.hutool.crypto.digest.BCrypt;

public class PasswordUtil {

    public static String hash(String pwd) {
        return BCrypt.hashpw(pwd);
    }

    public static boolean valid(String pwd, String hashPwd) {
        return BCrypt.checkpw(pwd, hashPwd);
    }
}
